package com.ruoyi.dishes.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 原料对象 tb_raw
 * 
 * @author ruoyi
 * @date 2023-04-24
 */
public class TbRaw extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 原料编号 */
    private Long rawId;

    /** 原料名称 */
    @Excel(name = "原料名称")
    private String rawName;

    /** 库存 */
    @Excel(name = "库存")
    private Long rawNum;

    /** 库存单位 */
    @Excel(name = "库存单位")
    private String unit;

    /** 盘库日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "盘库日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date inventoryTime;

    public void setRawId(Long rawId) 
    {
        this.rawId = rawId;
    }

    public Long getRawId() 
    {
        return rawId;
    }
    public void setRawName(String rawName) 
    {
        this.rawName = rawName;
    }

    public String getRawName() 
    {
        return rawName;
    }
    public void setRawNum(Long rawNum) 
    {
        this.rawNum = rawNum;
    }

    public Long getRawNum() 
    {
        return rawNum;
    }
    public void setUnit(String unit) 
    {
        this.unit = unit;
    }

    public String getUnit() 
    {
        return unit;
    }
    public void setInventoryTime(Date inventoryTime) 
    {
        this.inventoryTime = inventoryTime;
    }

    public Date getInventoryTime() 
    {
        return inventoryTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("rawId", getRawId())
            .append("rawName", getRawName())
            .append("rawNum", getRawNum())
            .append("unit", getUnit())
            .append("inventoryTime", getInventoryTime())
            .toString();
    }
}
